@import './reset';

.container{
	width: 100%;
	background: #F5F8FA;
	overflow: hidden;
	box-sizing: border-box;
	padding-bottom: calculateRem(50px);

	.question-wrap{
		width: 100%;
		margin-bottom: calculateRem(10px);
		background: white;
		box-sizing: border-box;
		padding: calculateRem(20px) 0;
		.question{
			width: 100%;
			line-height: calculateRem(30px);
			height: auto;
			@include break;
			font-size: calculateRem(17px);
			color: #333;
			font-weight: bold;
			box-sizing: border-box;
			padding: 0 calculateRem(20px);
			margin-bottom: calculateRem(6px);

		}
		.option{
			width: 100%;
			height: auto;
			line-height: calculateRem(30px);
			box-sizing: border-box;
			padding: 0 calculateRem(15px);
			&:active{
				background: #fafafa;
			}
			
			.item-text{
				display: inline-block;
				font-size: calculateRem(15px);
				vertical-align: top;
				&:before{
					display: inline-block;
					width: calculateRem(24px);
					height: calculateRem(24px);
					background: url(../images/checkbox_uncheck@2x.png) no-repeat;
					background-size: 100% 100%;
					vertical-align: -6px;
					content: '';
				}

			}

		}
		.active{
			background: #F0F2F5;
			.item-text{
				&:before{
					background: url(../images/radiobutton_checked@2x.png) no-repeat;
					background-size: 100% 100%;
				}
			}
		}
		.active2{
			background: #F0F2F5;
			.item-text{
				&:before{
					background: url(../images/checkbox_checked@2x.png) no-repeat;
					background-size: 100% 100%;
				}
			}
		}
	}

}


.footer{
	width: 100%;
	height: calculateRem(60px);
	padding: 0 calculateRem(10px);
	box-sizing: border-box;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: white;
	.hold{
		display: block;
		width: 100%;
		height: calculateRem(50px);
		/*background: #E62622;*/
		background-image: linear-gradient(135deg, #FF8252 0%, #E63256 100%);

		border-radius: calculateRem(5px);
		color: white;
		font-size: calculateRem(20px);
		text-align: center;
		line-height: calculateRem(50px);
		
		&:active{
			
			background-image: linear-gradient(135deg, #fb906a 0%, #e04261 100%);
		}

	}
}


.retest-dialog-mask{
	position: fixed;
	background: rgba(0,15,25,.6);
	z-index: 200;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: none;
	.retest-dialog{
		position: absolute;
		bottom: calculateRem(10px);
		left: calculateRem(10px);
		right: calculateRem(10px);

		border-radius: calculateRem(13px);
		height: calculateRem(224px);
		background: white;
		box-sizing: border-box;
		padding: calculateRem(10px);
		>h3{
			margin: 0;
			text-align: center;
			font-size: calculateRem(20px);
			color: #333;
			margin-top: calculateRem(18px);
		}
		>p{
			font-size: calculateRem(16px);
			color: #4b4b4b;
			text-align: center;
			@include break;
			line-height: calculateRem(24px);
			margin: 0;
			margin-top: calculateRem(14px);
			>i{
				font-style: normal;
				font-weight: bold;
				margin-left: calculateRem(8px);
			}

		}
		.start-retest{
			position: absolute;
			left: calculateRem(10px);
			right: calculateRem(10px);
			bottom: calculateRem(10px);
			display: block;
			height: calculateRem(50px);
			background: #E62622;
			border-radius: calculateRem(5px);
			color: white;
			font-size: calculateRem(20px);
			text-align: center;
			line-height: calculateRem(50px);
			
			&:active{
				background: #C51B0D;
			}
		}

		.close-btn{
			width: calculateRem(32px);
			height: calculateRem(32px);
			position: absolute;
			top: calculateRem(-47px);
			right: calculateRem(15px);
			border-radius: 50%;
			&:acitve{
				background: rgba(0,15,25,.4);
			}
			&:after{
				content: '';
				display: block;
				width: 2px;
				height: calculateRem(15px);
				background: rgba(255,255,255,.6);
				position: absolute;
				bottom: calculateRem(-15px);
				left: calculateRem(15px);
			}
			>img{
				width: 100%;
				height: 100%;
			}
		}
	}

}


.undo-dialog-mask{
	position: fixed;
	background: rgba(0,15,25,.6);
	z-index: 200;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: none;
	.undo-dialog{
		position: absolute;
		bottom: calculateRem(10px);
		left: calculateRem(10px);
		right: calculateRem(10px);

		border-radius: calculateRem(13px);
		height: calculateRem(204px);
		background: white;
		box-sizing: border-box;
		padding: calculateRem(10px);
		>h3{
			margin: 0;
			text-align: center;
			font-size: calculateRem(20px);
			color: #333;
			margin-top: calculateRem(18px);
		}
		>p{
			font-size: calculateRem(16px);
			color: #4b4b4b;
			text-align: center;
			@include break;
			line-height: calculateRem(24px);
			margin: 0;
			margin-top: calculateRem(14px);
			>i{
				font-style: normal;
				font-weight: bold;
				margin-left: calculateRem(8px);
			}

		}
		.start-retest{
			position: absolute;
			left: calculateRem(10px);
			right: calculateRem(10px);
			bottom: calculateRem(10px);
			display: block;
			height: calculateRem(50px);
			background: #E62622;
			border-radius: calculateRem(5px);
			color: white;
			font-size: calculateRem(20px);
			text-align: center;
			line-height: calculateRem(50px);
			
			&:active{
				background: #C51B0D;
			}
		}

		.close-btn{
			width: calculateRem(32px);
			height: calculateRem(32px);
			position: absolute;
			top: calculateRem(-47px);
			right: calculateRem(15px);
			border-radius: 50%;
			&:acitve{
				background: rgba(0,15,25,.4);
			}
			&:after{
				content: '';
				display: block;
				width: 2px;
				height: calculateRem(15px);
				background: rgba(255,255,255,.6);
				position: absolute;
				bottom: calculateRem(-15px);
				left: calculateRem(15px);
			}
			>img{
				width: 100%;
				height: 100%;
			}
		}
	}

}


.match-risk-dialog-mask{
	position: fixed;
	background: rgba(0,15,25,.6);
	z-index: 200;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: none;
	.match-risk-dialog{
		position: absolute;
		bottom: calculateRem(10px);
		left: calculateRem(10px);
		right: calculateRem(10px);
		border-radius: calculateRem(13px);
		height: calculateRem(264px);
		background: white;
		box-sizing: border-box;
		padding: calculateRem(10px);
		>h3{
			margin: 0;
			text-align: center;
			font-size: calculateRem(20px);
			color: #333;
			margin-top: calculateRem(18px);
		}
		>h4{
			margin: 0;
			text-align: center;
			font-size: calculateRem(24px);
			color: #E62622;
			margin-top: calculateRem(2px);
		}
		.types-wrap{
			@media only screen and (min-width: 320px){
				width: 84%;
			}
			@media only screen and (min-width: 375px){
				width: 80%;
			}
			height: calculateRem(54px);
			margin: calculateRem(26px) auto 0;
			.type{
				display: inline-block;
				box-sizing: border-box;
				width: calculateRem(16px);
				height: calculateRem(16px);
				border: 2px solid rgba(74,83,89,1);
				border-radius: 50%;
				position: relative;
				margin-left: calculateRem(30px);
				margin-top: calculateRem(20px);
				&:before{
					content:'保守型';
					position: absolute;
					font-size: calculateRem(15px);
					color: #4B4B4B;
					bottom: calculateRem(-25px);
					display: inline-block;
					width: 7.0rem;
					left: -3rem;
					height: calculateRem(21px);
					text-align: center;
				}
				&:after{
					content: '';
					display: inline-block;
					width: calculateRem(26px);
					height: 2px;
					position: absolute;
					right: calculateRem(-32px);
					top: calculateRem(5px);
					background: rgba(74,83,89,1);
				}
			}
			.t1{
				margin-left: calculateRem(20px);
			}
			.t2{
				&:before{
					content:'相对保守型';
					top: calculateRem(-25px);
				}
			}
			.t3{
				&:before{
					content:'稳健型';
					bottom: calculateRem(-25px);
				}
			}
			.t4{
				&:before{
					content:'相对积极型';
					top: calculateRem(-25px);
				}
			}
			.t5{
				&:before{
					content:'积极型';
					bottom: calculateRem(-25px);
				}
				&:after{
					display: none;
				}
			}
			.active{
				background: #E62622;
				border: 2px solid #E62622;
			}
		}

		.btns-wrap{
			position: absolute;
			height: calculateRem(50px);
			left: calculateRem(10px);
			right: calculateRem(10px);
			bottom: calculateRem(10px);
			>a{
				display: inline-block;
				height: calculateRem(50px);
				font-size: calculateRem(20px);
				color: #FFFFFF;
				text-align: center;
				line-height: calculateRem(50px);
				outline: none;
				border-radius: calculateRem(5px);
			}
			.retest{
				background: #D8E5F5;
				width: 35%;
				color: #595959;
				float: left;
				&:active{
					background: #eee;
				}
			}
			.buy{
				/*background: #E62622;*/
				background-image: linear-gradient(135deg, #FF8252 0%, #E63256 100%);
				width: 63%;
				float: right;
				&:active{
					background-image: linear-gradient(135deg, #fb906a 0%, #e04261 100%);
				}
			}
		}
	}
}

.alert-box{
	position: fixed;
	z-index: 1000;
	max-width: 86%;
	width: auto;
	height: calculateRem(40px);
	font-size: calculateRem(16px);
	line-height: calculateRem(40px);
	transform: translate(-50%,0);
	left: 50%;
	padding: 0 calculateRem(8px);
	background: rgba(0,0,0,.7);
	top: 20vh;
	border-radius: 5px;
	box-sizing: border-box;
	color: white;
	text-align: center;
	/*word-break: normal;*/
	display: none;
}